Optimal. Leaf size=716 \[ \frac{\left (-\frac{-2 a c d+b^2 d-b c e}{\sqrt{b^2-4 a c}}+b d-c e\right ) \log \left (-\sqrt [3]{2} \sqrt [3]{c} x \sqrt [3]{b-\sqrt{b^2-4 a c}}+\left (b-\sqrt{b^2-4 a c}\right )^{2/3}+2^{2/3} c^{2/3} x^2\right )}{6 \sqrt [3]{2} c^{4/3} \left (b-\sqrt{b^2-4 a c}\right )^{2/3}}+\frac{\left (\frac{-2 a c d+b^2 d-b c e}{\sqrt{b^2-4 a c}}+b d-c e\right ) \log \left (-\sqrt [3]{2} \sqrt [3]{c} x \sqrt [3]{\sqrt{b^2-4 a c}+b}+\left (\sqrt{b^2-4 a c}+b\right )^{2/3}+2^{2/3} c^{2/3} x^2\right )}{6 \sqrt [3]{2} c^{4/3} \left (\sqrt{b^2-4 a c}+b\right )^{2/3}}-\frac{\left (-\frac{-2 a c d+b^2 d-b c e}{\sqrt{b^2-4 a c}}+b d-c e\right ) \log \left (\sqrt [3]{b-\sqrt{b^2-4 a c}}+\sqrt [3]{2} \sqrt [3]{c} x\right )}{3 \sqrt [3]{2} c^{4/3} \left (b-\sqrt{b^2-4 a c}\right )^{2/3}}-\frac{\left (\frac{-2 a c d+b^2 d-b c e}{\sqrt{b^2-4 a c}}+b d-c e\right ) \log \left (\sqrt [3]{\sqrt{b^2-4 a c}+b}+\sqrt [3]{2} \sqrt [3]{c} x\right )}{3 \sqrt [3]{2} c^{4/3} \left (\sqrt{b^2-4 a c}+b\right )^{2/3}}+\frac{\left (-\frac{-2 a c d+b^2 d-b c e}{\sqrt{b^2-4 a c}}+b d-c e\right ) \tan ^{-1}\left (\frac{1-\frac{2 \sqrt [3]{2} \sqrt [3]{c} x}{\sqrt [3]{b-\sqrt{b^2-4 a c}}}}{\sqrt{3}}\right )}{\sqrt [3]{2} \sqrt{3} c^{4/3} \left (b-\sqrt{b^2-4 a c}\right )^{2/3}}+\frac{\left (\frac{-2 a c d+b^2 d-b c e}{\sqrt{b^2-4 a c}}+b d-c e\right ) \tan ^{-1}\left (\frac{1-\frac{2 \sqrt [3]{2} \sqrt [3]{c} x}{\sqrt [3]{\sqrt{b^2-4 a c}+b}}}{\sqrt{3}}\right )}{\sqrt [3]{2} \sqrt{3} c^{4/3} \left (\sqrt{b^2-4 a c}+b\right )^{2/3}}+\frac{d x}{c} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 1.63351, antiderivative size = 716, normalized size of antiderivative = 1., number of steps used = 15, number of rules used = 9, integrand size = 22, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.409, Rules used = {1393, 1502, 1422, 200, 31, 634, 617, 204, 628} \[ \frac{\left (-\frac{-2 a c d+b^2 d-b c e}{\sqrt{b^2-4 a c}}+b d-c e\right ) \log \left (-\sqrt [3]{2} \sqrt [3]{c} x \sqrt [3]{b-\sqrt{b^2-4 a c}}+\left (b-\sqrt{b^2-4 a c}\right )^{2/3}+2^{2/3} c^{2/3} x^2\right )}{6 \sqrt [3]{2} c^{4/3} \left (b-\sqrt{b^2-4 a c}\right )^{2/3}}+\frac{\left (\frac{-2 a c d+b^2 d-b c e}{\sqrt{b^2-4 a c}}+b d-c e\right ) \log \left (-\sqrt [3]{2} \sqrt [3]{c} x \sqrt [3]{\sqrt{b^2-4 a c}+b}+\left (\sqrt{b^2-4 a c}+b\right )^{2/3}+2^{2/3} c^{2/3} x^2\right )}{6 \sqrt [3]{2} c^{4/3} \left (\sqrt{b^2-4 a c}+b\right )^{2/3}}-\frac{\left (-\frac{-2 a c d+b^2 d-b c e}{\sqrt{b^2-4 a c}}+b d-c e\right ) \log \left (\sqrt [3]{b-\sqrt{b^2-4 a c}}+\sqrt [3]{2} \sqrt [3]{c} x\right )}{3 \sqrt [3]{2} c^{4/3} \left (b-\sqrt{b^2-4 a c}\right )^{2/3}}-\frac{\left (\frac{-2 a c d+b^2 d-b c e}{\sqrt{b^2-4 a c}}+b d-c e\right ) \log \left (\sqrt [3]{\sqrt{b^2-4 a c}+b}+\sqrt [3]{2} \sqrt [3]{c} x\right )}{3 \sqrt [3]{2} c^{4/3} \left (\sqrt{b^2-4 a c}+b\right )^{2/3}}+\frac{\left (-\frac{-2 a c d+b^2 d-b c e}{\sqrt{b^2-4 a c}}+b d-c e\right ) \tan ^{-1}\left (\frac{1-\frac{2 \sqrt [3]{2} \sqrt [3]{c} x}{\sqrt [3]{b-\sqrt{b^2-4 a c}}}}{\sqrt{3}}\right )}{\sqrt [3]{2} \sqrt{3} c^{4/3} \left (b-\sqrt{b^2-4 a c}\right )^{2/3}}+\frac{\left (\frac{-2 a c d+b^2 d-b c e}{\sqrt{b^2-4 a c}}+b d-c e\right ) \tan ^{-1}\left (\frac{1-\frac{2 \sqrt [3]{2} \sqrt [3]{c} x}{\sqrt [3]{\sqrt{b^2-4 a c}+b}}}{\sqrt{3}}\right )}{\sqrt [3]{2} \sqrt{3} c^{4/3} \left (\sqrt{b^2-4 a c}+b\right )^{2/3}}+\frac{d x}{c} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1393
Rule 1502
Rule 1422
Rule 200
Rule 31
Rule 634
Rule 617
Rule 204
Rule 628
Rubi steps
\begin{align*} \int \frac{d+\frac{e}{x^3}}{c+\frac{a}{x^6}+\frac{b}{x^3}} \, dx &=\int \frac{x^3 \left (e+d x^3\right )}{a+b x^3+c x^6} \, dx\\ &=\frac{d x}{c}-\frac{\int \frac{a d+(b d-c e) x^3}{a+b x^3+c x^6} \, dx}{c}\\ &=\frac{d x}{c}-\frac{\left (b d-c e-\frac{b^2 d-2 a c d-b c e}{\sqrt{b^2-4 a c}}\right ) \int \frac{1}{\frac{b}{2}-\frac{1}{2} \sqrt{b^2-4 a c}+c x^3} \, dx}{2 c}-\frac{\left (b d-c e+\frac{b^2 d-2 a c d-b c e}{\sqrt{b^2-4 a c}}\right ) \int \frac{1}{\frac{b}{2}+\frac{1}{2} \sqrt{b^2-4 a c}+c x^3} \, dx}{2 c}\\ &=\frac{d x}{c}-\frac{\left (b d-c e-\frac{b^2 d-2 a c d-b c e}{\sqrt{b^2-4 a c}}\right ) \int \frac{1}{\frac{\sqrt [3]{b-\sqrt{b^2-4 a c}}}{\sqrt [3]{2}}+\sqrt [3]{c} x} \, dx}{3 \sqrt [3]{2} c \left (b-\sqrt{b^2-4 a c}\right )^{2/3}}-\frac{\left (b d-c e-\frac{b^2 d-2 a c d-b c e}{\sqrt{b^2-4 a c}}\right ) \int \frac{2^{2/3} \sqrt [3]{b-\sqrt{b^2-4 a c}}-\sqrt [3]{c} x}{\frac{\left (b-\sqrt{b^2-4 a c}\right )^{2/3}}{2^{2/3}}-\frac{\sqrt [3]{c} \sqrt [3]{b-\sqrt{b^2-4 a c}} x}{\sqrt [3]{2}}+c^{2/3} x^2} \, dx}{3 \sqrt [3]{2} c \left (b-\sqrt{b^2-4 a c}\right )^{2/3}}-\frac{\left (b d-c e+\frac{b^2 d-2 a c d-b c e}{\sqrt{b^2-4 a c}}\right ) \int \frac{1}{\frac{\sqrt [3]{b+\sqrt{b^2-4 a c}}}{\sqrt [3]{2}}+\sqrt [3]{c} x} \, dx}{3 \sqrt [3]{2} c \left (b+\sqrt{b^2-4 a c}\right )^{2/3}}-\frac{\left (b d-c e+\frac{b^2 d-2 a c d-b c e}{\sqrt{b^2-4 a c}}\right ) \int \frac{2^{2/3} \sqrt [3]{b+\sqrt{b^2-4 a c}}-\sqrt [3]{c} x}{\frac{\left (b+\sqrt{b^2-4 a c}\right )^{2/3}}{2^{2/3}}-\frac{\sqrt [3]{c} \sqrt [3]{b+\sqrt{b^2-4 a c}} x}{\sqrt [3]{2}}+c^{2/3} x^2} \, dx}{3 \sqrt [3]{2} c \left (b+\sqrt{b^2-4 a c}\right )^{2/3}}\\ &=\frac{d x}{c}-\frac{\left (b d-c e-\frac{b^2 d-2 a c d-b c e}{\sqrt{b^2-4 a c}}\right ) \log \left (\sqrt [3]{b-\sqrt{b^2-4 a c}}+\sqrt [3]{2} \sqrt [3]{c} x\right )}{3 \sqrt [3]{2} c^{4/3} \left (b-\sqrt{b^2-4 a c}\right )^{2/3}}-\frac{\left (b d-c e+\frac{b^2 d-2 a c d-b c e}{\sqrt{b^2-4 a c}}\right ) \log \left (\sqrt [3]{b+\sqrt{b^2-4 a c}}+\sqrt [3]{2} \sqrt [3]{c} x\right )}{3 \sqrt [3]{2} c^{4/3} \left (b+\sqrt{b^2-4 a c}\right )^{2/3}}+\frac{\left (b d-c e-\frac{b^2 d-2 a c d-b c e}{\sqrt{b^2-4 a c}}\right ) \int \frac{-\frac{\sqrt [3]{c} \sqrt [3]{b-\sqrt{b^2-4 a c}}}{\sqrt [3]{2}}+2 c^{2/3} x}{\frac{\left (b-\sqrt{b^2-4 a c}\right )^{2/3}}{2^{2/3}}-\frac{\sqrt [3]{c} \sqrt [3]{b-\sqrt{b^2-4 a c}} x}{\sqrt [3]{2}}+c^{2/3} x^2} \, dx}{6 \sqrt [3]{2} c^{4/3} \left (b-\sqrt{b^2-4 a c}\right )^{2/3}}-\frac{\left (b d-c e-\frac{b^2 d-2 a c d-b c e}{\sqrt{b^2-4 a c}}\right ) \int \frac{1}{\frac{\left (b-\sqrt{b^2-4 a c}\right )^{2/3}}{2^{2/3}}-\frac{\sqrt [3]{c} \sqrt [3]{b-\sqrt{b^2-4 a c}} x}{\sqrt [3]{2}}+c^{2/3} x^2} \, dx}{2\ 2^{2/3} c \sqrt [3]{b-\sqrt{b^2-4 a c}}}+\frac{\left (b d-c e+\frac{b^2 d-2 a c d-b c e}{\sqrt{b^2-4 a c}}\right ) \int \frac{-\frac{\sqrt [3]{c} \sqrt [3]{b+\sqrt{b^2-4 a c}}}{\sqrt [3]{2}}+2 c^{2/3} x}{\frac{\left (b+\sqrt{b^2-4 a c}\right )^{2/3}}{2^{2/3}}-\frac{\sqrt [3]{c} \sqrt [3]{b+\sqrt{b^2-4 a c}} x}{\sqrt [3]{2}}+c^{2/3} x^2} \, dx}{6 \sqrt [3]{2} c^{4/3} \left (b+\sqrt{b^2-4 a c}\right )^{2/3}}-\frac{\left (b d-c e+\frac{b^2 d-2 a c d-b c e}{\sqrt{b^2-4 a c}}\right ) \int \frac{1}{\frac{\left (b+\sqrt{b^2-4 a c}\right )^{2/3}}{2^{2/3}}-\frac{\sqrt [3]{c} \sqrt [3]{b+\sqrt{b^2-4 a c}} x}{\sqrt [3]{2}}+c^{2/3} x^2} \, dx}{2\ 2^{2/3} c \sqrt [3]{b+\sqrt{b^2-4 a c}}}\\ &=\frac{d x}{c}-\frac{\left (b d-c e-\frac{b^2 d-2 a c d-b c e}{\sqrt{b^2-4 a c}}\right ) \log \left (\sqrt [3]{b-\sqrt{b^2-4 a c}}+\sqrt [3]{2} \sqrt [3]{c} x\right )}{3 \sqrt [3]{2} c^{4/3} \left (b-\sqrt{b^2-4 a c}\right )^{2/3}}-\frac{\left (b d-c e+\frac{b^2 d-2 a c d-b c e}{\sqrt{b^2-4 a c}}\right ) \log \left (\sqrt [3]{b+\sqrt{b^2-4 a c}}+\sqrt [3]{2} \sqrt [3]{c} x\right )}{3 \sqrt [3]{2} c^{4/3} \left (b+\sqrt{b^2-4 a c}\right )^{2/3}}+\frac{\left (b d-c e-\frac{b^2 d-2 a c d-b c e}{\sqrt{b^2-4 a c}}\right ) \log \left (\left (b-\sqrt{b^2-4 a c}\right )^{2/3}-\sqrt [3]{2} \sqrt [3]{c} \sqrt [3]{b-\sqrt{b^2-4 a c}} x+2^{2/3} c^{2/3} x^2\right )}{6 \sqrt [3]{2} c^{4/3} \left (b-\sqrt{b^2-4 a c}\right )^{2/3}}+\frac{\left (b d-c e+\frac{b^2 d-2 a c d-b c e}{\sqrt{b^2-4 a c}}\right ) \log \left (\left (b+\sqrt{b^2-4 a c}\right )^{2/3}-\sqrt [3]{2} \sqrt [3]{c} \sqrt [3]{b+\sqrt{b^2-4 a c}} x+2^{2/3} c^{2/3} x^2\right )}{6 \sqrt [3]{2} c^{4/3} \left (b+\sqrt{b^2-4 a c}\right )^{2/3}}-\frac{\left (b d-c e-\frac{b^2 d-2 a c d-b c e}{\sqrt{b^2-4 a c}}\right ) \operatorname{Subst}\left (\int \frac{1}{-3-x^2} \, dx,x,1-\frac{2 \sqrt [3]{2} \sqrt [3]{c} x}{\sqrt [3]{b-\sqrt{b^2-4 a c}}}\right )}{\sqrt [3]{2} c^{4/3} \left (b-\sqrt{b^2-4 a c}\right )^{2/3}}-\frac{\left (b d-c e+\frac{b^2 d-2 a c d-b c e}{\sqrt{b^2-4 a c}}\right ) \operatorname{Subst}\left (\int \frac{1}{-3-x^2} \, dx,x,1-\frac{2 \sqrt [3]{2} \sqrt [3]{c} x}{\sqrt [3]{b+\sqrt{b^2-4 a c}}}\right )}{\sqrt [3]{2} c^{4/3} \left (b+\sqrt{b^2-4 a c}\right )^{2/3}}\\ &=\frac{d x}{c}+\frac{\left (b d-c e-\frac{b^2 d-2 a c d-b c e}{\sqrt{b^2-4 a c}}\right ) \tan ^{-1}\left (\frac{1-\frac{2 \sqrt [3]{2} \sqrt [3]{c} x}{\sqrt [3]{b-\sqrt{b^2-4 a c}}}}{\sqrt{3}}\right )}{\sqrt [3]{2} \sqrt{3} c^{4/3} \left (b-\sqrt{b^2-4 a c}\right )^{2/3}}+\frac{\left (b d-c e+\frac{b^2 d-2 a c d-b c e}{\sqrt{b^2-4 a c}}\right ) \tan ^{-1}\left (\frac{1-\frac{2 \sqrt [3]{2} \sqrt [3]{c} x}{\sqrt [3]{b+\sqrt{b^2-4 a c}}}}{\sqrt{3}}\right )}{\sqrt [3]{2} \sqrt{3} c^{4/3} \left (b+\sqrt{b^2-4 a c}\right )^{2/3}}-\frac{\left (b d-c e-\frac{b^2 d-2 a c d-b c e}{\sqrt{b^2-4 a c}}\right ) \log \left (\sqrt [3]{b-\sqrt{b^2-4 a c}}+\sqrt [3]{2} \sqrt [3]{c} x\right )}{3 \sqrt [3]{2} c^{4/3} \left (b-\sqrt{b^2-4 a c}\right )^{2/3}}-\frac{\left (b d-c e+\frac{b^2 d-2 a c d-b c e}{\sqrt{b^2-4 a c}}\right ) \log \left (\sqrt [3]{b+\sqrt{b^2-4 a c}}+\sqrt [3]{2} \sqrt [3]{c} x\right )}{3 \sqrt [3]{2} c^{4/3} \left (b+\sqrt{b^2-4 a c}\right )^{2/3}}+\frac{\left (b d-c e-\frac{b^2 d-2 a c d-b c e}{\sqrt{b^2-4 a c}}\right ) \log \left (\left (b-\sqrt{b^2-4 a c}\right )^{2/3}-\sqrt [3]{2} \sqrt [3]{c} \sqrt [3]{b-\sqrt{b^2-4 a c}} x+2^{2/3} c^{2/3} x^2\right )}{6 \sqrt [3]{2} c^{4/3} \left (b-\sqrt{b^2-4 a c}\right )^{2/3}}+\frac{\left (b d-c e+\frac{b^2 d-2 a c d-b c e}{\sqrt{b^2-4 a c}}\right ) \log \left (\left (b+\sqrt{b^2-4 a c}\right )^{2/3}-\sqrt [3]{2} \sqrt [3]{c} \sqrt [3]{b+\sqrt{b^2-4 a c}} x+2^{2/3} c^{2/3} x^2\right )}{6 \sqrt [3]{2} c^{4/3} \left (b+\sqrt{b^2-4 a c}\right )^{2/3}}\\ \end{align*}
Mathematica [C] time = 0.0558162, size = 88, normalized size = 0.12 \[ \frac{d x}{c}-\frac{\text{RootSum}\left [\text{$\#$1}^3 b+\text{$\#$1}^6 c+a\& ,\frac{\text{$\#$1}^3 b d \log (x-\text{$\#$1})-\text{$\#$1}^3 c e \log (x-\text{$\#$1})+a d \log (x-\text{$\#$1})}{\text{$\#$1}^2 b+2 \text{$\#$1}^5 c}\& \right ]}{3 c} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.013, size = 67, normalized size = 0.1 \begin{align*}{\frac{dx}{c}}+{\frac{1}{3\,c}\sum _{{\it \_R}={\it RootOf} \left ({{\it \_Z}}^{6}c+{{\it \_Z}}^{3}b+a \right ) }{\frac{ \left ( \left ( -bd+ce \right ){{\it \_R}}^{3}-ad \right ) \ln \left ( x-{\it \_R} \right ) }{2\,{{\it \_R}}^{5}c+{{\it \_R}}^{2}b}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \frac{d x}{c} + \frac{-\int \frac{{\left (b d - c e\right )} x^{3} + a d}{c x^{6} + b x^{3} + a}\,{d x}}{c} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: TypeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]